package com.phpxiu.app.pulltorefresh;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.widget.FrameLayout;

import com.phpxiu.app.pulltorefresh.PullToRefreshView.Mode;
import com.phpxiu.app.pulltorefresh.PullToRefreshView.Orientation;

public abstract class LoadingLayout extends FrameLayout implements ILoadingLayout {
	public LoadingLayout(Context context, final Mode mode, final Orientation scrollDirection, TypedArray attrs) {
		super(context);
	}
    public void refreshing(){}
    public void reset() {}
    public void showInvisibleViews(){}
    public void hideAllViews(){}
	/**
	 * Callbacks for derivative Layouts
	 */

	protected abstract int getDefaultDrawableResId();

	protected abstract void onLoadingDrawableSet(Drawable imageDrawable);

	protected abstract void onPullImpl(float scaleOfLayout);

	protected abstract void pullToRefreshImpl();

	protected abstract void refreshingImpl();

	protected abstract void releaseToRefreshImpl();

	protected abstract void resetImpl();
}
